#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_pushButton_clicked()
{
   ui->label->setText("hongse");
   ui->label->setStyleSheet("background-color:red");
}

void Widget::on_pushButton_2_clicked()
{
    ui->label->setText("luse");
    ui->label->setStyleSheet("background-color:green");
}
